﻿@model List<ZhongheCms.Models.GswTblBusInfo>
@{
	
    Layout = "~/Views/Shared/_LayoutWebsite.cshtml";
    string jobstate = "";
    int i = 0;
    string colorname = "";
}
@section head
{
    <link href="/assets/sunjob/css/board.css" rel="stylesheet" />
}
<div class="fix gWrapper">
    <div class="breakcrumb">
        <a href="/">首页</a>&nbsp;&gt;&nbsp;
        <a href="/SunJob/CharteredBus">校内包车</a>
    </div>
      <div id="content">

                  <table width="1168" border="0" cellpadding="0" cellspacing="0">
                      <tr align="center" valign="middle" class="shijian" background="/assets/sunjob/images/baochebg.jpg">
                          <td width="166" height="44">发车日期</td>
                          <td width="238" height="44">发车时间</td>
                          <td width="126" height="44">途径</td>
                          <td width="146" height="44">终点</td>
                          <td width="100" height="44">价格</td>
                          <td width="120" height="44">座位/已报</td>
                          <td width="146" height="44">报名截止</td>
                          <td width="126" height="44">报名</td>
                      </tr>
                       @foreach (var item in Model)
                        {
                            jobstate = "马上报名";
                            if (item.ReserveNum==item.Seats)
                            {
                                jobstate = "已结束";
                            }
                            if (i % 2 == 0)
                            {
                                colorname = "#FDE3CC";
                            }
                            else
                            {
                                colorname = "#FFFFFF";
                            }
                            <tr align="center" valign="middle" bgcolor="@colorname" class="leftmenu" height="34">
                                <td><a href="/SunJob/BusDesc/@item.Id">@item.StartDate.ToShortDateString() <span>@item.StartTime</span></a></td>
                                <td><a href="/SunJob/BusDesc/@item.Id">@item.OriginPlace</a></td>
                                <td><a href="/SunJob/BusDesc/@item.Id">@item.RouteLine</a></td>
                                <td><a href="/SunJob/BusDesc/@item.Id">@item.EndPlace</a></td>
                                <td><a href="/SunJob/BusDesc/@item.Id">@item.Price</a></td>
                                <td><a href="/SunJob/BusDesc/@item.Id">@item.Seats<span>/</span>@item.ReserveNum</a></td>
                                <td><a href="/SunJob/BusDesc/@item.Id">@item.EndDate.ToShortDateString()</a></td>

                                <td><a href="/SunJob/BusDesc/@item.Id">
                                        @if (item.ReserveNum==item.Seats)
                            {
                                            <span>已结束</span>
                                        }
                                        else
                                        {
                                            <img src="/assets/sunjob/images/baochean.jpg" width="77" height="22" align="absmiddle" border="0" />
                                    }
                                    </a></td>
                            </tr>
                            i++;
                        }
         @* <tr align="center" valign="middle" bgcolor="#FDE3CC" class="leftmenu">
            <td width="166" height="34">2014-10-28 10:28 </td>
            <td width="238" height="34">常熟理工东南校区大校门口</td>
            <td width="126" height="34">中途不下车</td>
            <td width="146" height="34">南京小红山汽车站</td>
            <td width="100" height="34">200.00</td>
            <td width="120" height="34">50/16</td>
            <td width="146" height="34">2014-10-28</td>
            <td width="126" height="34"><img src="images/baochean.jpg" width="77" height="22" align="absmiddle"></td>
          </tr>
         *@
        </table>

            </div>
</div>
